package com.zy.pay.api.request;

import com.alibaba.fastjson.annotation.JSONField;
import com.zy.pay.api.enums.ZyPayApiEnum;
import com.zy.pay.api.response.ZyPayOrderColseResponse;

/**
 * 关闭订单请求参数 <br>
 *
 * @author panweiqiang <br>
 * @date 2020/7/7 9:27 <br>
 */
public class ZyPayOrderColseRequest extends ZyPayRequest<ZyPayOrderColseResponse> {

    @Override
    public Class<ZyPayOrderColseResponse> getResponseClass() {
        return ZyPayOrderColseResponse.class;
    }

    @Override
    public ZyPayApiEnum getApiEnum() {
        return ZyPayApiEnum.ORDER_CLOSE;
    }

    /**
     * 商户订单号
     */
    @JSONField(name = "cp_tran_no")
    private String cpTranNo;

    /**
     * 商户订单提交时间,精确到秒，格式：yyyyMMddHHmmss
     */
    @JSONField(name = "time")
    private String time;

    public String getCpTranNo() {
        return cpTranNo;
    }

    public void setCpTranNo(String cpTranNo) {
        this.cpTranNo = cpTranNo;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
